package com.buba.commodity.servicec.impl;

import com.buba.commodity.pojo.ProductColor;
import com.buba.commodity.service.ColorService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("colorServiceImpl")
public class ColorServiceImpl implements ColorService {
    @DubboReference  //用在消费端，表明使用的是服务端的什么服务
    private ColorService colorService;

    @Override
    public List<ProductColor> selColor() {
        return colorService.selColor();
    }
}
